package com.zhou.framework.elasticsearch;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import java.io.Serializable;

/**
 * @author lang.zhou
 * @since 2023/4/23 12:21
 */
@Document(indexName = "test20230423",type = "_doc",shards = 1,replicas = 0, refreshInterval = "-1")
@Data
public class ElasticEntity implements Serializable {
    @Id
    private String id;
    @Field
    private String name;
    @Field
    private String content;
    @Field
    private String price;
}
